﻿using System;
using Castle.ActiveRecord;

namespace BusinessModels
{
    [ActiveRecord]
    public class Movie : ActiveRecordBase<Movie>
    {
        private int _id;

        private string _stringTest;

        private Director _activeRecordTest;

        private MovieType _type;

        private bool _isChecked;

        public Movie()
        {

        }

        [PrimaryKey]
        public int Id
        {
            get { return _id; }
            set { _id = value; }
        }

        [Property]
        public string Name
        {
            get { return _stringTest; }
            set { _stringTest = value; }
        }

        [BelongsTo]
        public Director DirectorProperty
        {
            get { return _activeRecordTest; }
            set { _activeRecordTest = value; }
        }

        [Property]
        public MovieType Type
        {
            get { return _type; }
            set { _type = value; }
        }

        [Property]
        public bool IsChecked
        {
            get { return _isChecked; }
            set { _isChecked = value; }
        }
    }

}
